package oop.controller.action.markconst;

import oop.controller.action.DefaultAction;
import oop.db.dao.MarkConstraintDAO;

public class DeleteAction extends DefaultAction {

	@Override
	public void performImpl() throws Exception {
		long testStructureId = getParams().getLong("test");
		long sectionStructureId = getParams().getLong("section");
		int mark = getParams().getInt("mark");
		MarkConstraintDAO.drop(sectionStructureId, mark);
		setNextAction("teststruct.view&tsv_id=" + testStructureId);
	}

}
